<template>
  <div>
    <h4>第二题</h4>
    <button @click="fn">点击</button>
    <p>{{crr}}</p>
  </div>
</template>

<script>
export default {
  data () {
    return {
      brr:[1, 0, 2, 0, 0, 0, 5],
      crr:[]
    }
  },
  methods:{
    fn(){
      this.brr.forEach(item => {
        item = item * 2 
        this.crr.push(item)
      }) 
    }
    
  }
}
</script>

<style scoped>

</style>